package com.list.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.common.domain.po.LikedRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 路亚
 * @version 0.1
 * @className LikedRecordMapper
 * @description
 * @date 2025/1/2 17:44
 * @since jdk11
 */
@Mapper
public interface LikedRecordMapper extends BaseMapper<LikedRecord> {

    @Select("select * from liked_record_#{yesterday}")
    List<LikedRecord> selectByDate(@Param("yesterday") Integer yesterday);
}
